package com.yantong.mapper;

import com.yantong.pojo.CategoryExample;
import com.yantong.pojo.vo.CentreCategoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Dao
 *
 * @author Kyle
 * @email 572001183@qq.com
 * @date 2017-08-21 15:32:31
 */
public interface CentreCategoryMapper {

    long countByExample(CategoryExample example);

    int deleteByExample(CategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(CentreCategoryVo record);

    int insertSelective(CentreCategoryVo record);

    List<CentreCategoryVo> selectByExample(CategoryExample example);

    CentreCategoryVo selectByPrimaryKey(Long id);

    Long selectByName(String name);

    int updateByExampleSelective(@Param("record") CentreCategoryVo record, @Param("example") CategoryExample example);

    int updateByExample(@Param("record") CentreCategoryVo record, @Param("example") CategoryExample example);

    int updateByPrimaryKeySelective(CentreCategoryVo record);

    int updateByPrimaryKey(CentreCategoryVo record);

    int delByParentId(Long parentId);

    Long selectByNameSon(Map map);

    CentreCategoryVo selectCategoryByName(Map map);
}
